package org.ns.tomdog.server;


import java.io.IOException;

public interface ServerResponse {
    void setVersion(String version);
    void setStatus(int status);
    void setError(String error);
    void setHeader(String name, String value);
    void addHeader(String name, String value);
    void setContentType(String contentType);
    void serContentLength(String contentLength);
    void write(byte[] bytes);
    void write(byte[] bytes, int off, int len);
    void flush() throws IOException;
    void close() throws IOException;
}
